export const enum CADTypes {
    DWG_TYPE_UNUSED = 0x00,
    DWG_TYPE_TEXT = 0x01,
    DWG_TYPE_ATTRIB = 0x02,
    DWG_TYPE_ATTDEF = 0x03,
    DWG_TYPE_BLOCK = 0x04,
    DWG_TYPE_ENDBLK = 0x05,
    DWG_TYPE_SEQEND = 0x06,
    DWG_TYPE_INSERT = 0x07,
    DWG_TYPE_MINSERT = 0x08,
    // DWG_TYPE_TRACE_old = 0x09, /* old TRACE r10-r11 only */
    DWG_TYPE_VERTEX_2D = 0x0a,
    DWG_TYPE_VERTEX_3D = 0x0b,
    DWG_TYPE_VERTEX_MESH = 0x0c,
    DWG_TYPE_VERTEX_PFACE = 0x0d,
    DWG_TYPE_VERTEX_PFACE_FACE = 0x0e,
    DWG_TYPE_POLYLINE_2D = 0x0f,
    DWG_TYPE_POLYLINE_3D = 0x10,
    DWG_TYPE_ARC = 0x11,
    DWG_TYPE_CIRCLE = 0x12,
    DWG_TYPE_LINE = 0x13,
    DWG_TYPE_DIMENSION_ORDINATE = 0x14,
    DWG_TYPE_DIMENSION_LINEAR = 0x15,
    DWG_TYPE_DIMENSION_ALIGNED = 0x16,
    DWG_TYPE_DIMENSION_ANG3PT = 0x17,
    DWG_TYPE_DIMENSION_ANG2LN = 0x18,
    DWG_TYPE_DIMENSION_RADIUS = 0x19,
    DWG_TYPE_DIMENSION_DIAMETER = 0x1A,
    DWG_TYPE_POINT = 0x1b,
    DWG_TYPE__3DFACE = 0x1c,
    DWG_TYPE_POLYLINE_PFACE = 0x1d,
    DWG_TYPE_POLYLINE_MESH = 0x1e,
    DWG_TYPE_SOLID = 0x1f,
    DWG_TYPE_TRACE = 0x20,
    DWG_TYPE_SHAPE = 0x21,
    DWG_TYPE_VIEWPORT = 0x22,
    DWG_TYPE_ELLIPSE = 0x23,
    DWG_TYPE_SPLINE = 0x24,
    DWG_TYPE_REGION = 0x25,
    DWG_TYPE__3DSOLID = 0x26,
    DWG_TYPE_BODY = 0x27,
    DWG_TYPE_RAY = 0x28,
    DWG_TYPE_XLINE = 0x29,
    DWG_TYPE_DICTIONARY = 0x2a,
    DWG_TYPE_OLEFRAME = 0x2b,
    DWG_TYPE_MTEXT = 0x2c,
    DWG_TYPE_LEADER = 0x2d,
    DWG_TYPE_TOLERANCE = 0x2e,
    DWG_TYPE_MLINE = 0x2f,
    DWG_TYPE_BLOCK_CONTROL = 0x30,
    DWG_TYPE_BLOCK_HEADER = 0x31,
    DWG_TYPE_LAYER_CONTROL = 0x32,
    DWG_TYPE_LAYER = 0x33,
    DWG_TYPE_STYLE_CONTROL = 0x34, /* 52 SHAPEFILE_CONTROL */
    DWG_TYPE_STYLE = 0x35,
    /* DWG_TYPE_<UNKNOWN> = 0x36, */
    /* DWG_TYPE_<UNKNOWN> = 0x37, */
    DWG_TYPE_LTYPE_CONTROL = 0x38,
    DWG_TYPE_LTYPE = 0x39,
    /* DWG_TYPE_<UNKNOWN> = 0x3a, */
    /* DWG_TYPE_<UNKNOWN> = 0x3b, */
    DWG_TYPE_VIEW_CONTROL = 0x3c,
    DWG_TYPE_VIEW = 0x3d,
    DWG_TYPE_UCS_CONTROL = 0x3e,
    DWG_TYPE_UCS = 0x3f,
    DWG_TYPE_VPORT_CONTROL = 0x40,
    DWG_TYPE_VPORT = 0x41,
    DWG_TYPE_APPID_CONTROL = 0x42,
    DWG_TYPE_APPID = 0x43,
    DWG_TYPE_DIMSTYLE_CONTROL = 0x44,
    DWG_TYPE_DIMSTYLE = 0x45,
    DWG_TYPE_VX_CONTROL = 0x46,
    DWG_TYPE_VX_TABLE_RECORD = 0x47,
    DWG_TYPE_GROUP = 0x48,
    DWG_TYPE_MLINESTYLE = 0x49,
    DWG_TYPE_OLE2FRAME = 0x4a,
    DWG_TYPE_DUMMY = 0x4b,
    DWG_TYPE_LONG_TRANSACTION = 0x4c,
    DWG_TYPE_LWPOLYLINE = 0x4d, /* ?? */
    DWG_TYPE_HATCH = 0x4e,
    DWG_TYPE_XRECORD = 0x4f,
    DWG_TYPE_PLACEHOLDER = 0x50,
    DWG_TYPE_VBA_PROJECT = 0x51,
    DWG_TYPE_LAYOUT = 0x52,
}

/** cad颜色值 */
export const CADColors = [
    [0, 0, 0],
    [255, 0, 0],
    [255, 255, 0],
    [0, 255, 0],
    [0, 255, 255],
    [0, 0, 255],
    [255, 0, 255],
    [255, 255, 255],
    [128, 128, 128],
    [192, 192, 192],
    [255, 0, 0],
    [255, 120, 112],
    [192, 0, 0],
    [207, 103, 96],
    [144, 0, 0],
    [144, 72, 79],
    [127, 0, 0],
    [112, 56, 48],
    [79, 0, 0],
    [79, 39, 32],
    [255, 56, 0],
    [255, 159, 127],
    [192, 48, 0],
    [207, 127, 96],
    [144, 32, 0],
    [144, 88, 64],
    [112, 24, 0],
    [127, 72, 63],
    [79, 16, 0],
    [64, 40, 31],
    [255, 127, 0],
    [255, 191, 127],
    [207, 103, 0],
    [192, 151, 96],
    [159, 72, 0],
    [144, 112, 79],
    [127, 63, 0],
    [127, 95, 63],
    [64, 32, 0],
    [64, 55, 31],
    [255, 191, 0],
    [255, 216, 127],
    [207, 152, 0],
    [192, 175, 96],
    [144, 112, 0],
    [144, 128, 64],
    [112, 88, 0],
    [127, 111, 63],
    [64, 55, 0],
    [64, 63, 31],
    [255, 255, 0],
    [255, 255, 112],
    [207, 200, 0],
    [192, 200, 96],
    [144, 151, 0],
    [144, 151, 64],
    [144, 152, 0],
    [127, 120, 63],
    [79, 72, 0],
    [79, 72, 32],
    [191, 255, 0],
    [208, 255, 112],
    [144, 200, 0],
    [176, 200, 96],
    [111, 151, 0],
    [128, 151, 79],
    [95, 127, 0],
    [111, 127, 63],
    [48, 72, 0],
    [63, 72, 31],
    [127, 255, 0],
    [191, 255, 127],
    [95, 200, 0],
    [159, 200, 96],
    [64, 151, 0],
    [111, 151, 64],
    [63, 120, 0],
    [95, 127, 63],
    [31, 72, 0],
    [48, 72, 32],
    [63, 255, 0],
    [159, 255, 127],
    [47, 200, 0],
    [127, 200, 96],
    [31, 151, 0],
    [80, 151, 64],
    [31, 127, 0],
    [79, 127, 63],
    [15, 72, 0],
    [47, 72, 32],
    [0, 255, 0],
    [127, 255, 127],
    [0, 200, 0],
    [95, 200, 95],
    [0, 151, 0],
    [79, 151, 79],
    [0, 127, 0],
    [63, 127, 63],
    [0, 72, 0],
    [32, 72, 32],
    [0, 255, 63],
    [127, 255, 159],
    [0, 200, 47],
    [95, 200, 112],
    [0, 151, 32],
    [64, 151, 95],
    [0, 120, 31],
    [63, 127, 79],
    [0, 72, 15],
    [32, 72, 47],
    [0, 255, 127],
    [127, 255, 191],
    [0, 200, 96],
    [95, 200, 144],
    [0, 151, 64],
    [79, 151, 111],
    [0, 127, 63],
    [63, 127, 95],
    [0, 72, 32],
    [31, 72, 48],
    [0, 255, 191],
    [127, 255, 223],
    [0, 200, 144],
    [95, 200, 175],
    [0, 151, 111],
    [79, 151, 128],
    [0, 120, 95],
    [63, 127, 111],
    [0, 72, 48],
    [32, 72, 63],
    [0, 255, 255],
    [127, 255, 255],
    [0, 200, 207],
    [96, 200, 207],
    [0, 151, 144],
    [64, 151, 144],
    [0, 127, 127],
    [63, 127, 127],
    [0, 72, 79],
    [32, 72, 79],
    [0, 191, 255],
    [127, 223, 255],
    [0, 152, 207],
    [96, 176, 207],
    [0, 111, 144],
    [64, 128, 144],
    [0, 95, 127],
    [63, 111, 127],
    [0, 55, 64],
    [31, 63, 64],
    [0, 127, 255],
    [112, 184, 255],
    [0, 96, 192],
    [96, 151, 207],
    [0, 72, 159],
    [79, 112, 144],
    [0, 63, 127],
    [63, 95, 127],
    [0, 39, 79],
    [32, 56, 79],
    [0, 63, 255],
    [127, 159, 255],
    [0, 48, 207],
    [96, 127, 207],
    [0, 39, 159],
    [64, 95, 144],
    [0, 24, 127],
    [63, 79, 127],
    [0, 15, 64],
    [32, 47, 79],
    [0, 0, 255],
    [127, 127, 255],
    [0, 0, 207],
    [95, 96, 192],
    [0, 0, 144],
    [79, 72, 159],
    [0, 0, 127],
    [63, 63, 127],
    [0, 0, 64],
    [32, 39, 79],
    [63, 0, 255],
    [159, 127, 255],
    [47, 0, 192],
    [127, 103, 207],
    [32, 0, 144],
    [80, 72, 144],
    [31, 0, 127],
    [79, 63, 127],
    [15, 0, 79],
    [47, 39, 79],
    [127, 0, 255],
    [191, 127, 255],
    [96, 0, 207],
    [144, 103, 207],
    [79, 0, 144],
    [111, 72, 144],
    [63, 0, 127],
    [95, 63, 127],
    [31, 0, 64],
    [48, 39, 79],
    [191, 0, 255],
    [223, 127, 255],
    [144, 0, 207],
    [175, 96, 192],
    [111, 0, 144],
    [128, 72, 159],
    [95, 0, 127],
    [96, 56, 112],
    [48, 0, 64],
    [64, 39, 79],
    [255, 0, 255],
    [255, 127, 255],
    [192, 0, 192],
    [192, 96, 192],
    [144, 0, 144],
    [144, 72, 144],
    [127, 0, 127],
    [127, 63, 127],
    [79, 0, 79],
    [64, 32, 64],
    [255, 0, 191],
    [255, 127, 223],
    [192, 0, 144],
    [192, 96, 175],
    [144, 0, 111],
    [144, 72, 128],
    [127, 0, 95],
    [127, 56, 111],
    [64, 0, 48],
    [79, 39, 63],
    [255, 0, 127],
    [255, 127, 191],
    [192, 0, 95],
    [192, 96, 144],
    [159, 0, 79],
    [144, 72, 111],
    [127, 0, 63],
    [127, 63, 95],
    [64, 0, 31],
    [64, 32, 48],
    [255, 0, 63],
    [255, 127, 159],
    [207, 0, 48],
    [207, 103, 127],
    [144, 0, 32],
    [144, 72, 95],
    [127, 0, 31],
    [127, 63, 79],
    [79, 0, 15],
    [64, 32, 47],
    [47, 47, 47],
    [80, 88, 80],
    [128, 128, 128],
    [175, 175, 175],
    [208, 215, 208],
    [255, 255, 255],
];
